<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>锶远</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="基础知识swap分区是必须设置的 ext3是Linux的文件系统 删除一个非空子目录，rm -rf &#x2F;home&#x2F;tmp 删除目录&#x2F;home&#x2F;tmp下的所有文件及子目录，同时保留&#x2F;home&#x2F;tmp目录：rm -rf &#x2F;home&#x2F;tmp&#x2F;* 将源文件或目录直接改名而不需要修改目录，mv 按名字查找文件,并不区分大">
<meta property="og:type" content="article">
<meta property="og:title" content="锶远">
<meta property="og:url" content="http://cooper.gitee.io/2023/03/31/%E5%BC%80%E5%8F%91%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/index.html">
<meta property="og:site_name" content="锶远">
<meta property="og:description" content="基础知识swap分区是必须设置的 ext3是Linux的文件系统 删除一个非空子目录，rm -rf &#x2F;home&#x2F;tmp 删除目录&#x2F;home&#x2F;tmp下的所有文件及子目录，同时保留&#x2F;home&#x2F;tmp目录：rm -rf &#x2F;home&#x2F;tmp&#x2F;* 将源文件或目录直接改名而不需要修改目录，mv 按名字查找文件,并不区分大">
<meta property="og:locale">
<meta property="article:published_time" content="2023-03-31T13:46:53.000Z">
<meta property="article:modified_time" content="2023-03-31T13:46:53.000Z">
<meta property="article:author" content="Cooper Niu">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="锶远" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
  
<meta name="generator" content="Hexo 6.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">锶远</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Suche"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Suche"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://cooper.gitee.io"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-开发基础知识" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2023/03/31/%E5%BC%80%E5%8F%91%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" class="article-date">
  <time class="dt-published" datetime="2023-03-31T13:46:53.000Z" itemprop="datePublished">2023-03-31</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h2 id="基础知识"><a href="#基础知识" class="headerlink" title="基础知识"></a>基础知识</h2><p>swap分区是必须设置的</p>
<p>ext3是Linux的文件系统</p>
<p>删除一个非空子目录，rm -rf &#x2F;home&#x2F;tmp</p>
<p>删除目录&#x2F;home&#x2F;tmp下的所有文件及子目录，同时保留&#x2F;home&#x2F;tmp目录：rm -rf &#x2F;home&#x2F;tmp&#x2F;*</p>
<p>将源文件或目录直接改名而不需要修改目录，mv</p>
<p>按名字查找文件,并不区分大小写find -iname</p>
<p>查找文件testfile中只包含4个字符的行：grep ‘^…$’ testfile</p>
<p>在&#x2F;etc目录下精确查找文件名为init的文件，find &#x2F;etc -name init</p>
<p>统计文本内容的行数：cat file | wc -l</p>
<h4 id="Maven"><a href="#Maven" class="headerlink" title="Maven"></a>Maven</h4><p>Maven是项目管理和理解工具，为开发者提供了一个完整的构建生命周期框架。</p>
<p>使用约定优于配置，开发者不需要自己创建构建过程，不必提及每个配置细节。</p>
<p>POM代表项目对象模型，是Maven中的基本工作单元，包含项目的信息和Maven构建项目的配置细节</p>
<p>项目的依赖项被指定为工件，包含组Id，工件Id，版本字符串</p>
<p>生命周期包含</p>
<ul>
<li>clean（清理之前构建的工件）</li>
<li>build：构建应用程序</li>
<li>site：为项目生成项目文档</li>
</ul>
<h5 id="Maven-构建生命周期有哪些阶段？"><a href="#Maven-构建生命周期有哪些阶段？" class="headerlink" title="Maven 构建生命周期有哪些阶段？"></a>Maven 构建生命周期有哪些阶段？</h5><p>以下是阶段 −</p>
<ul>
<li><strong>validate −</strong> 验证项目是否正确并且所有必要的信息都可用。</li>
<li><strong>compile −</strong>编译项目的源代码。</li>
<li><strong>test −</strong> 使用合适的单元测试框架测试编译的源代码。 这些测试不应该要求打包或部署代码</li>
<li><strong>package −</strong> take the compiled code and package it in its distributable format, such as a JAR.</li>
<li><strong>integration-test −</strong> 处理并在必要时将包部署到可以运行集成测试的环境中。</li>
<li><strong>verify −</strong> 运行任何检查以验证包是否有效并符合质量标准。</li>
<li><strong>install −</strong> 将包安装到本地存储库中，以用作本地其他项目的依赖项。</li>
<li><strong>deploy −</strong> 在集成或发布环境中完成，将最终包复制到远程存储库以与其他开发人员和项目共享。</li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://cooper.gitee.io/2023/03/31/%E5%BC%80%E5%8F%91%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" data-id="cllam785q000jo9cyh9psat3y" data-title="" class="article-share-link"><span class="fa fa-share">Teilen</span></a>
      
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2023/04/17/%E5%A6%82%E4%BD%95%E4%BA%B2%E5%AF%86%E8%82%B2%E5%84%BF%EF%BC%9F.md/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          (no title)
        
      </div>
    </a>
  
  
    <a href="/2023/03/31/%E4%BB%8E%E6%80%80%E5%AD%95%E5%88%B0%E5%88%86%E5%A8%A9%EF%BC%8C%E7%9C%8B%E5%AE%8C%E6%9C%AC%E6%96%87%E5%B0%B1%E9%83%BD%E6%98%8E%E7%99%BD%E4%BA%86.md/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title"></div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/08/">August 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/06/">June 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/05/">May 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/04/">April 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/03/">March 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/02/">February 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/01/">January 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/12/">December 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/">November 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2023/08/14/hello-world/">Hello World</a>
          </li>
        
          <li>
            <a href="/2023/08/08/%E6%8A%80%E6%9C%AF%E6%98%AF%E4%BD%A0%E7%9A%84%E5%AE%89%E8%BA%AB%E7%AB%8B%E5%91%BD%E4%B9%8B%E6%9C%AC/">(no title)</a>
          </li>
        
          <li>
            <a href="/2023/06/16/%E4%BA%BA%E7%94%9F%E7%9B%AE%E6%A0%87%E9%87%8D%E5%9C%A8%E5%B9%B3%E8%A1%A1/">(no title)</a>
          </li>
        
          <li>
            <a href="/2023/06/15/%E8%81%8C%E5%9C%BA%E5%BE%88%E9%9A%BE%EF%BC%8C%E7%A6%BB%E5%BC%80%E6%9B%B4%E9%9A%BE/">(no title)</a>
          </li>
        
          <li>
            <a href="/2023/06/05/%E6%B7%B1%E5%9C%B3%E5%9F%8E%E4%B8%AD%E6%9D%91%E7%BB%9F%E7%A7%9F%E7%9A%84%E6%9C%AA%E6%9D%A5/">(no title)</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2023 Cooper Niu<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.6.4.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>